<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>博客页面</title>
	<style type="text/css">
table{ border: 1px solid #aaa;border-right: none;border-bottom: none; width: 100%;}
td{ border-right: 1px solid #aaa;border-bottom: 1px solid #aaa;}
.add{ width: 100px; height: 20px; line-height: 20px; display: block; background: #41536E; color: #fff;text-align: center;}
a{text-decoration: none; text-align: center; color: #222;}

	</style>
</head>
<body>
	<a href="?m=admin&c=blog&a=add" class="add">添加博客</a>
	<table cellspacing="0" align="center">
		<tr>
			<td>bid</td>
			<td>标题</td>
			<td>栏目</td>
			<td>发表时间</td>
			<td colspan="3">操作</td>
		</tr>
		{ly:section loop=$data name=d}
		<tr>
			<td>{ly:$data[d].bid}</td>
			<td>{ly:$data[d].title}</td>
			<td>{ly:$data[d].catname}</td>
			<td>{ly:$data[d].addtime|date_format:'%y-%m-%d'}</td>
			
			<td><a href="?m=Index&c=index&a=blog&cid={ly:$data[d].cid}&bid={ly:$data[d].bid}" target="_blank">访问</a></td>
			<td><a href="?m=admin&c=blog&a=edit&bid={ly:$data[d].bid}">编辑</a></td>
			<td><a href="">删除</a></td>
		</tr>
		{ly:/section}
	</table>
	<div class="page">{ly:$page}</div>
</body>
</html>